import App from './App'

// #ifdef VUE3
import { createSSRApp } from 'vue'
import CakeItem from './components/cake-item.vue'
import NavCustom from './components/nav-custom.vue'
import CakePopup from './components/cake-popup.vue'
import store from './store'
import './utils/web-leancloud-init.js' //初始化web端的leancloudSDK
export function createApp() {
  const app = createSSRApp(App)
  app.use(store) //注入状态机
  app.component('CakeItem',CakeItem) //全局注册
  app.component('NavCustom',NavCustom)
  app.component('CakePopup',CakePopup)
  return {
    app
  }
}
// #endif